package com.chaoyi.enums;


/**
 * 响应状态
 * @author xuanqicheng
 */
public enum ResultStatus {

    SUCCESS(200,"成功"),

    INNER_ERROR(500,"系统内部错误"),
    /**
     * 参数状态码描述
     */
    PARAMETER_EXCEPTION_CODE(10001,"参数错误！"),;

    private int code;

    private String message;

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
